package com.example.myapplication.beans;

import java.util.Date;
import java.util.List;

public class Product {

    //根据返回值类型创建实体类
    private String productId;
    private String productName;
    private int categoryId;
    private int rootCategoryId;
    private int soldNum;
    private int productStatus;
    private Date createTime;
    private Date updateTime;
    private String content;
    private List<ProductImg> imgs;

    //搜索页面要用
    private List<ProductSku> skus;

    public Product(String productId, String productName, int categoryId, int rootCategoryId, int soldNum, int productStatus, Date createTime, Date updateTime, String content, List<ProductImg> imgs) {
        this.productId = productId;
        this.productName = productName;
        this.categoryId = categoryId;
        this.rootCategoryId = rootCategoryId;
        this.soldNum = soldNum;
        this.productStatus = productStatus;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.content = content;
        this.imgs = imgs;
    }

    public Product() {
    }

    @Override
    public String toString() {
        return "Product{" +
                "productId='" + productId + '\'' +
                ", productName='" + productName + '\'' +
                ", categoryId=" + categoryId +
                ", rootCategoryId=" + rootCategoryId +
                ", soldNum=" + soldNum +
                ", productStatus=" + productStatus +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", content='" + content + '\'' +
                ", imgs=" + imgs +
                '}';
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public int getRootCategoryId() {
        return rootCategoryId;
    }

    public void setRootCategoryId(int rootCategoryId) {
        this.rootCategoryId = rootCategoryId;
    }

    public int getSoldNum() {
        return soldNum;
    }

    public void setSoldNum(int soldNum) {
        this.soldNum = soldNum;
    }

    public int getProductStatus() {
        return productStatus;
    }

    public void setProductStatus(int productStatus) {
        this.productStatus = productStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<ProductImg> getImgs() {
        return imgs;
    }

    public void setImgs(List<ProductImg> imgs) {
        this.imgs = imgs;
    }

    public List<ProductSku> getSkus() {
        return skus;
    }

    public void setSkus(List<ProductSku> skus) {
        this.skus = skus;
    }
}
